package cn.king.springframework.beans.factory;


import cn.king.springframework.beans.BeanException;

public interface BeanFactory {
    Object getBean(String name) throws BeanException;

    Object getBean(String name,Object ... args);

    /**
     * 按类型获取Bean
     * @param name
     * @param requireType
     * @param <T>
     * @return
     */
    <T> T getBean(String name,Class<T> requireType);
}
